package com.za.wbw.service.shop.impl;

import com.za.wbw.dao.shop.LoginDao;
import com.za.wbw.model.shop.UserInfo;
import com.za.wbw.service.shop.LoginService;

public class LoginServiceImpl implements LoginService {
	private LoginDao loginDao;
	
	// 查询商家数量
	public int queryShopCount() throws Exception{
		return this.getLoginDao().queryShopCount();
	}
	// 查询用户信息
	public UserInfo queryUserByAccount(String account) throws Exception
	{
		return this.getLoginDao().queryUserByAccount(account);
	}
	// ------------------------------------
	public LoginDao getLoginDao() throws Exception {
		return loginDao;
	}

	public void setLoginDao(LoginDao loginDao) throws Exception {
		this.loginDao = loginDao;
	}
}
